import request from "@/utils/request";

// 查询积分商城列表
export function listGoods(query) {
  return request({
    url: "/library/mbGoods/list",
    method: "get",
    params: query,
  });
}

// 查询积分商城详细
export function getGoods(id) {
  return request({
    url: "/library/mbGoods/" + id,
    method: "get",
  });
}

// 新增积分商城
export function addGoods(data) {
  return request({
    url: "/library/mbGoods",
    method: "post",
    data: data,
  });
}

// 修改积分商城
export function updateGoods(data) {
  return request({
    url: "/library/mbGoods",
    method: "put",
    data: data,
  });
}

// 删除积分商城
export function delGoods(id) {
  return request({
    url: "/library/mbGoods/" + id,
    method: "delete",
  });
}
